package com.dc.refactoring._6_处理概括关系._7_ExtractSuperclass.step2;

/**
 * Description: 员工
 * @author: gdc
 * @date: 2020/12/13
 * @version 1.0
 */
// step 2 当前类继承 新建的 Party 类
public class Employee extends Party {

    /**
     * ID
     */
    private String id;
    /**
     * 名称
     */

    /**
     * 年度成本
     */
    private Integer annualCost;

    public Employee(String id, String name, Integer annualCost) {
        super(name);

        this.id = id;
        this.annualCost = annualCost;
    }

    public String getId() {
        return id;
    }

    @Override
    public Integer getAnnualCost(){
        return annualCost;
    }


}
